package com.techsoul.module.tms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.tms.pojo.entity.VehiclesInfo;
import com.techsoul.module.tms.pojo.param.VehiclesInfoSearchParam;
import com.techsoul.module.tms.pojo.vo.VehiclesInfoVo;

/**
 * Mapper 接口
 *
 * @author zhaowei
 * @since 2019 -11-11
 */
public interface VehiclesInfoMapper extends BaseMapper<VehiclesInfo> {

    /**
     * Find all list.
     *
     * @param params the params
     * @return the list
     */
    List<VehiclesInfoVo> findAll(@Param("params") VehiclesInfoSearchParam params);
    List<VehiclesInfoVo> getVehiclesMarker(@Param("params") VehiclesInfoSearchParam params);
    List<VehiclesInfoVo> findByloc(@Param("shipmentLocation") String shipmentLocation,@Param("vehicleModel") String vehicleModel);
    List<VehiclesInfo> findAllEntity(@Param("params") VehiclesInfoSearchParam params);
    List<VehiclesInfo> findOutSourceVehicle();
    /**
     * Find all page.
     *
     * @param page the page
     * @param params the params
     * @return the page
     */
    IPage<VehiclesInfoVo> findAll(Page page, @Param("params") VehiclesInfoSearchParam params);
}
